package org.neuedu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.neuedu.entity.Employee;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lzw
 * @since 2024-11-07
 */
public interface EmployeeService extends IService<Employee> {
    IPage<Employee> list(Integer pageNo, Integer pageSize, String name);
    Boolean check(String field,String value,Long id);
    boolean add(Long deptmentId, Long registLevelId, Long schedulingId, String realname, String phone, String email, String password, MultipartFile file);

    Boolean del(Long id, Boolean delmark);


    List<Employee> getRegisterEmp(Integer week, String noon, Long deptId, Long registLevelId);
    String login(String phone, String password);
    Boolean loginout(String phone);
    Employee getByPhone(String phone);
    boolean updateEmpById(Employee data,String oldpassword,MultipartFile file);

}
